﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Xml;
using System.Xml.Linq;

namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }

        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("Hello World!", "Test", MessageBoxButton.YesNoCancel);
            //XElement element = XElement.Load("emloyees.xml");
            //MessageBox.Show(element.Value);
            //XElement contacts = new XElement("Contacts", new XElement("Contact", "Jens"));     
            // Load the XML.
            // Write text value.
            XElement element = XElement.Load("employees.xml");
            Console.WriteLine(element.Value);
         }
        
    }
}
